package com.ruoyi.bysj.service;

import java.util.List;
import com.ruoyi.bysj.domain.SysAppointment;

/**
 * 车主预约Service接口
 * 
 * @author laowang
 * @date 2021-10-15
 */
public interface ISysAppointmentService 
{
    /**
     * 查询车主预约
     * 
     * @param appointmentId 车主预约主键
     * @return 车主预约
     */
    public SysAppointment selectSysAppointmentByAppointmentId(Long appointmentId);

    /**
     * 查询车主预约列表
     * 
     * @param sysAppointment 车主预约
     * @return 车主预约集合
     */
    public List<SysAppointment> selectSysAppointmentList(SysAppointment sysAppointment);

    public List<SysAppointment> selectSysAppointmentByUserName(String userName);

    public List<SysAppointment> selectSysAppointmentByDate();

    /**
     * 新增车主预约
     * 
     * @param sysAppointment 车主预约
     * @return 结果
     */
    public int insertSysAppointment(SysAppointment sysAppointment);

    /**
     * 修改车主预约
     * 
     * @param sysAppointment 车主预约
     * @return 结果
     */
    public int updateSysAppointment(SysAppointment sysAppointment);

    /**
     * 批量删除车主预约
     * 
     * @param appointmentIds 需要删除的车主预约主键集合
     * @return 结果
     */
    public int deleteSysAppointmentByAppointmentIds(Long[] appointmentIds);

    /**
     * 删除车主预约信息
     * 
     * @param appointmentId 车主预约主键
     * @return 结果
     */
    public int deleteSysAppointmentByAppointmentId(Long appointmentId);
}
